package org.bw.bookstore.common.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 *@program: wisdom_bookstore
 *@description: 进门记录实体类
 *@Author: 孙冬雪
 *@Date: 2020-10-22 09:50
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Entity
@TableName("tb_enter_record")
public class TbEnterRecord extends BaseEntity implements Serializable {

    /**
     * 用户标识
     * @Author 孙冬雪
     * @Date 2020/10/21 15:19
     **/
    private String userInfoCode;

    /**
     * 一个进门记录有一个用户
     * @Author 孙冬雪
     * @Date 2020/10/21 15:20
     **/
    @TableField(exist = false)
    @Transient
    private TbUserInfo tbUserInfo;


}
